<?php
namespace app\common\service\SystemConfigService\Channel;
/*
 * @author banban
 * @datetime 2022-8-5 14:58:55
 * @copyright 板板<249366615@qq.com>
 * @filename ChannelTpl
 */
class ChannelTpl
{
    public static $config = [
        //基础配置
        1=>[
            'value_type' => 'json',
            'tob' => [
                'sms_wwtl' => [
                    'tpl'        => [
                        'value[sname]'     => ['key' => 'sname', 'view' => '短信账号','type'=>'input','placeholder'=>''],
                        'value[spwd]'      => ['key' => 'spwd', 'view' => '短信密码','type'=>'input','placeholder'=>''],
                        'value[sprdid]'    => ['key' => 'sprdid', 'view' => '通知类型','type'=>'input','placeholder'=>''],
                        'value[signature]' => ['key' => 'signature', 'view' => '签名','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '微网通联短信'
                ],
                'express_kuaidiyibai' => [
                    'tpl' => [
                        'value[customer]'   => ['key' => 'customer', 'view' => 'customer','type'=>'input','placeholder'=>''],
                        'value[secret]'   => ['key' => 'secret', 'view' => 'secret','type'=>'input','placeholder'=>''],
                        'value[key]'       => ['key' => 'key', 'view' => 'key','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '快递100'
                ],
                'id_auth' => [
                    'tpl' => [
                        'value[appId]' => ['key' => 'appId', 'view' => 'appId','type'=>'input','placeholder'=>''],
                        'value[appKey]' => ['key' => 'appKey', 'view' => 'appKey','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '二要素实名认证（创蓝253）'
                ],
//                'b2b_share' => [
//                    'tpl'        => [
//                        'value[title]'     => ['key' => 'title', 'view' => '分享标题','type'=>'input','placeholder'=>''],
//                        'value[img]'       => ['key' => 'img', 'view' => '分享图片','type' => 'img'],
//                    ],
//                    'tplname' => 'B2B小程序分享配置'
//                ],
//                'b2c_share' => [
//                    'tpl'        => [
//                        'value[title]'     => ['key' => 'title', 'view' => '分享标题','type'=>'input','placeholder'=>''],
//                        'value[img]'       => ['key' => 'img', 'view' => '分享图片','type' => 'img'],
//                    ],
//                    'tplname' => 'B2C小程序分享配置'
//                ],
                'user_agreement' => [
                    'tpl' => [
                        'value[user_agreement_content]'  => ['key' => 'user_agreement_content', 'view' => '内容','type' => 'textarea'],
                    ],
                    'tplname' => '用户协议'
                ],
                'privacy_agreement' => [
                    'tpl' => [
                        'value[privacy_agreement_content]'  => ['key' => 'privacy_agreement_content', 'view' => '内容','type' => 'textarea'],
                    ],
                    'tplname' => '隐私协议'
                ],
                'shop_audit' => [
                    'tpl' => [
                        'value[amount]' => ['key' => 'amount', 'view' => '开店付费金额', 'type'=>'input','placeholder'=>''],
                        'value[audit_type]' => ['key' => 'audit_type', 'view' => '审核类型', 'type' => 'radio', 'select' => ['0' => '人工审核', '1' => '自动审核']],
                        'value[settlement_agreement]' => ['key' => 'settlement_agreement', 'view' => '入驻协议', 'type' => 'textarea']
                    ],
                    'tplname' => '分销商开店配置'
                ],
                'wx_customer' => [
                    'tpl' => [
                        'value[on]' => ['key' => 'on' ,'view' => '是否使用统一微信客服(启用后，渠道所有店铺使用共同微信客服)','type' => 'radio','select' => ['0' => '关闭','开启']],
                    ],
                    'tplname' => '客服配置'
                ],
                'e_company' => [
                    'tpl' => [
                        'value[eCompanyCode]' => ['key' => 'eCompanyCode', 'view' => '电商平台备案号','type'=>'input','placeholder'=>''],
                        'value[eCompanyName]' => ['key' => 'eCompanyName', 'view' => '电商平台备案号名称','type'=>'input','placeholder'=>''],
                        'value[payReport]'    => ['key' => 'payReport', 'view' => '是否支付单申报','type' => 'radio', 'select' => ['0' => '否', '1' => '是']],
                        'value[orderReport]'  => ['key' => 'orderReport', 'view' => '是否订单申报','type' => 'radio', 'select' => ['0' => '否', '1' => '是']],
                    ],
                    'tplname' => '电商平台'
                ],
                'cop' => [
                    'tpl' => [
                        'value[copCode]' => ['key' => 'copCode', 'view' => '企业备案号','type'=>'input','placeholder'=>''],
                        'value[copName]' => ['key' => 'copName', 'view' => '企业名称','type'=>'input','placeholder'=>''],
                        'value[dxpMode]' => ['key' => 'dxpMode', 'view' => 'dxpMode','type'=>'input','placeholder'=>''],
                        'value[dxpId]'   => ['key' => 'dxpId',   'view' => 'dxpId','type'=>'input','placeholder'=>''],
                        'value[keyInfo]' => ['key' => 'keyInfo', 'view' => 'keyInfo','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '传输企业'
                ],
                'ali_oss' => [
                    'tpl'        => [
                        'value[accessId]'           => ['key' => 'accessId', 'view' => 'OssKeyId','type'=>'input','placeholder'=>''],
                        'value[accessSecret]'       => ['key' => 'accessSecret', 'view' => 'OssKeySecret','type'=>'input','placeholder'=>''],
                        'value[endpoint]'           => ['key' => 'endpoint', 'view' => 'OssEndpoint','type'=>'input','placeholder'=>''],
                        'value[endpoint_ex]'        => ['key' => 'endpoint_ex', 'view' => 'OssEndpoint_ex','type'=>'input','placeholder'=>''],
                        'value[bucket]'             => ['key' => 'bucket', 'view' => 'OssBucket','type'=>'input','placeholder'=>''],
                        'value[url]'                => ['key' => 'url', 'view' => '链接前缀','type'=>'input','placeholder'=>'']
                    ],
                    'tplname' => '阿里云OSS'
                ],
                'help_center' => [
                    'tpl' => [
                        'value[help_center_content]'  => ['key' => 'help_center_content', 'view' => '内容','type' => 'textarea'],
                    ],
                    'tplname' => '帮助中心'
                ],
                'about' => [
                    'tpl' => [
                        'value[about_content]'  => ['key' => 'about_content', 'view' => '内容','type' => 'textarea'],
                    ],
                    'tplname' => '关于我们'
                ],
                'wx_invitation_img' => [
                    'tpl' => [
                        'value[img]' => ['key' => 'invitation_img', 'view' => '邀请码海报', 'type' => 'img'],
                    ],
                    'tplname' => '邀请码海报'
                ],
                'shipping_notice' => [
                    'tpl' => [
                        'value[notice]' => ['key' => 'notice', 'view' => '发货提示', 'type' => 'input'],
                    ],
                    'tplname' => '发货提示'
                ],
            ]
        ],
        //商城配置
        2=>[
            'value_type' => 'json',
            'tob' => [
                'free_express' => [
                    'tpl' => [
                        'value[turn_on]'  => ['key' => 'turn_on', 'view' => '是否开启指定金额包邮(目前跨境药商品可指定金额包邮)','type' => 'radio', 'select' => ['0' => '否', '1' => '是']],
                        'value[free_money]'     => ['key' => 'free_money', 'view' => '包邮订单金额','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '指定金额包邮'
                ],
                'id_img' => [
                    'tpl' => [
                        'value[id_pic]'  => ['key' => 'id_pic', 'view' => '是否显示身份证上传(发版使用)','type' => 'radio', 'select' => ['0' => '否', '1' => '是']],
                    ],
                    'tplname' => '是否显示身份证上传'
                ],
                'price_decimal' => [
                    'tpl' => [
                        'value[price]'  => ['key' => 'price', 'view' => '零售价/会员价价格设置','type' => 'radio', 'select' => ['0' => '保留1位小数', '1' => '向上取整']],
                    ],
                    'tplname' => '价格小数设置'
                ],
                'wechat_msg_template'=>[
                    'tpl' => [
                        'value[shipping]'  => ['key' => 'shipping', 'view' => '发货通知','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '公众号推送消息模板id'
                ],
                'shopping_vip_type'=>[
                    'tpl' => [
                        'value[vip_type]'  => ['key' => 'vip_type', 'view' => '模式选择','type' => 'radio', 'select' => ['0' => '会员模式', '1' => '非会员模式']],
                    ],
                    'tplname' => '商场会员模式'
                ],
                'btb_buy'=>[
                    'tpl' => [
                        'value[buy_type]'  => ['key' => 'buy_type', 'view' => '模式选择','type' => 'radio', 'select' => ['0' => '允许自采', '1' => '不允许自采']],
                        'value[notice]'  => ['key' => 'notice', 'view' => '提示文案','type'=>'input','placeholder'=>''],
                        'value[price_type]'  => ['key' => 'price_type', 'view' => '小B商品价格显示','type' => 'radio', 'select' => ['0' => '结算价', '1' => '零售价']],
                        'value[price_commission]'  => ['key' => 'price_commission', 'view' => '自采订单分佣','type' => 'radio', 'select' => ['0' => '不允许店铺分佣', '1' => '允许店铺分佣']],
                    ],
                    'tplname' => '小B自采订单配置'
                ],
                'store_invited' => [
                    'tpl' => [
                        'value[need_invited]'  => ['key' => 'need_invited', 'view' => '开店是否填写邀请码','type' => 'radio', 'select' => ['0' => '否', '1' => '是']],
                    ],
                    'tplname' => '开店邀请码配置'
                ],
                'member_vip_fee' => [//开通天数、金额
                    'tpl' => [
                        'value[year]' => ['key' => 'year', 'view' => '年卡（365天）金额','type'=>'input','placeholder'=>''],
                        'value[jidu]' => ['key' => 'jidu', 'view' => '季卡（90天）金额','type'=>'input','placeholder'=>''],
                        'value[month]' => ['key' => 'month', 'view' => '月卡（30天）金额','type'=>'input','placeholder'=>''],
                        // 'value[price]' => ['key' => 'price', 'view' => '金额','type'=>'input','placeholder'=>''],
                        'value[gift]' => ['key' => 'gift', 'view' => '注册赠送天数','type'=>'input','placeholder'=>''],
                        'value[card_num]' => ['key' => 'card_num', 'view' => '充值赠送会员体验卡（张数）','type'=>'input','placeholder'=>''],
                        'value[card_day]' => ['key' => 'card_day', 'view' => '充值赠送会员体验卡（天数）','type'=>'input','placeholder'=>''],
                        'value[free_express]' => ['key' => 'free_express', 'view' => '会员是否全场包邮：（包含自建、代发商品）', 'type' => 'radio', 'select' => ['0' => '否', '1' => '是']],
                    ],
                    'tplname' => '会员配置'
                ],
                'wx_mnapp' => [
                    'tpl' => [
                        'value[img]' => ['key' => 'img', 'view' => '小B开店图片', 'type' => 'img'],
                    ],
                    'tplname' => '小B开店图片'
                ],
            ]
        ],
        //支付配置
        3=>[
            'value_type' => 'json',
            'tob' => [
                'wx_scan_gun_pay' => [
                    'tpl' => [
                        'value[appid]' => ['key' => 'appid', 'view' => '小程序appid','type'=>'input','placeholder'=>''],
                        'value[mch_id]' => ['key' => 'mch_id', 'view' => '商户号','type'=>'input','placeholder'=>''],
                        'value[key]' => ['key' => 'key', 'view' => '密钥','type'=>'input','placeholder'=>''],
                        'value[mode]' => ['key' => 'mode', 'view' => '模式(dev:沙箱环境;normal:正式环境;)','type'=>'input','placeholder'=>''],
                        'value[cert]' => ['key' => 'cert', 'view' => '证书目录(退款，红包等情况时需要用到)','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '微信扫码枪支付'
                ],
                'hnapay_pay' => [
                    'tpl' => [
                        'value[merCode]' => ['key' => 'merCode', 'view' => '商户号','type'=>'input','placeholder'=>''],
                        'value[merchantPubKey]' => ['key' => 'merchantPubKey', 'view' => '商户公钥','type'=>'input','placeholder'=>''],
                        'value[payCommanyName]' => ['key' => 'payCommanyName', 'view' => '支付企业名称','type'=>'input','placeholder'=>''],
                        'value[payCommanyCode]' => ['key' => 'payCommanyCode', 'view' => '支付企业海关编码','type'=>'input','placeholder'=>''],
                        'value[ePortCode]' => ['key' => 'ePortCode', 'view' => '电子口岸代码','type'=>'input','placeholder'=>''],
                        'value[mode]' => ['key' => 'mode', 'view' => '模式(dev:沙箱环境;normal:正式环境;)','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '新生支付'
                ],
                'wxmnapp_pay' => [
                    'tpl' => [
                        'value[appid]' => ['key' => 'appid', 'view' => '小B小程序appid','type'=>'input','placeholder'=>''],
                        'value[appsecret]' => ['key' => 'appsecret', 'view' => '小B小程序appsecret','type'=>'input','placeholder'=>''],
                        'value[cappid]' => ['key' => 'cappid', 'view' => 'C端小程序appid','type'=>'input','placeholder'=>''],
                        'value[cappsecret]' => ['key' => 'cappsecret', 'view' => 'C端小程序appsecret','type'=>'input','placeholder'=>''],
                        'value[mch_id]' => ['key' => 'mch_id', 'view' => '商户号','type'=>'input','placeholder'=>''],
                        'value[key]' => ['key' => 'key', 'view' => '密钥','type'=>'input','placeholder'=>''],
                        'value[mode]' => ['key' => 'mode', 'view' => '模式(dev:沙箱环境;normal:正式环境;)','type'=>'input','placeholder'=>''],
                        'value[cert]' => ['key' => 'cert', 'view' => '证书目录(退款，红包等情况时需要用到)','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '微信小程序支付'
                ],
                'wxmp_pay' => [
                    'tpl' => [
                        'value[appid]' => ['key' => 'appid', 'view' => '公众号appid','type'=>'input','placeholder'=>''],
                        'value[appsecret]' => ['key' => 'appsecret', 'view' => '公众号appsecret','type'=>'input','placeholder'=>''],
                        'value[mch_id]' => ['key' => 'mch_id', 'view' => '商户号','type'=>'input','placeholder'=>''],
                        'value[key]' => ['key' => 'key', 'view' => '密钥','type'=>'input','placeholder'=>''],
                        'value[wxmp_qrcode]' => ['key' => 'wxmp_qrcode', 'view' => '公众号二维码', 'type' => 'img'],
                        'value[mode]' => ['key' => 'mode', 'view' => '模式(dev:沙箱环境;normal:正式环境;)','type'=>'input','placeholder'=>''],
                        'value[cert]' => ['key' => 'cert', 'view' => '证书目录(退款，红包等情况时需要用到)','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '微信公众号支付'
                ],
                'pay_way' => [
                    'tpl' => [
                        'value[type]' => ['key' => 'type', 'view' => '支付方式', 'type' => 'radio', 'select' => ['0' => '微信原生', '1' => '新生支付']],
                    ],
                    'tplname' => '支付方式'
                ],
                'allinpay_pay' => [
                    'tpl' => [
                        'value[appid]' => ['key' => 'appid', 'view' => '应用ID','type'=>'input','placeholder'=>''],
                        'value[cusid]' => ['key' => 'cusid', 'view' => '收银宝商户号','type'=>'input','placeholder'=>''],
                        'value[private_key]' => ['key' => 'private_key', 'view' => 'RSA私钥','type'=>'input','placeholder'=>''],
                        'value[public_key]' => ['key' => 'public_key', 'view' => 'RSA公钥','type'=>'input','placeholder'=>''],
                        'value[mch_id]' => ['key' => 'mch_id', 'view' => '支付单申报商户号','type'=>'input','placeholder'=>''],
                        'value[customs_code]' => ['key' => 'customs_code', 'view' => '支付单申报海关代码','type'=>'input','placeholder'=>''],
                        'value[payCommanyName]' => ['key' => 'payCommanyName', 'view' => '支付企业名称','type'=>'input','placeholder'=>''],
                        'value[payCommanyCode]' => ['key' => 'payCommanyCode', 'view' => '支付企业海关编码','type'=>'input','placeholder'=>''],
                        'value[mode]' => ['key' => 'mode', 'view' => '模式(dev:沙箱环境;normal:正式环境;)','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '通联支付'
                ],
            ]
        ],
        //分账配置
        4=>[
            'value_type' => 'json',
            'tob' => [
                'settle_bill_day' => [//配置分账时间：T+N（订单完成后第N天分账）
                    'tpl' => [
                        'value[day]' => ['key' => 'day', 'view' => '天数','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '分账配置时间(T+N)'
                ],
                'cloud' => [//云仓账号
                    'tpl' => [
                        'value[account]' => ['key' => 'account', 'view' => '新生账号','type'=>'input','placeholder'=>''],
                        'value[subUserId]' => ['key' => 'subUserId', 'view' => '分账方在平台的用户ID','type'=>'input','placeholder'=>''],
                        'value[bankAcctNo]' => ['key' => 'bankAcctNo', 'view' => '结算银行卡号','type'=>'input','placeholder'=>''],
                    ],
                    'tplname' => '云仓分账账号'
                ],
            ],
        ],
        //其他配置
        5=>[
            'value_type' => 'json',
            'tob' => [
                'pc_config' => [
                    'tpl'        => [
                        'value[url]'     => ['key' => 'url', 'view' => 'pc站域名','placeholder'=>'例：www.indoorbuy.com或者shop.indoorbuy.com','type'=>'input'],
                    ],
                    'tplname' => 'pc站配置'
                ],
                'monitor_mobile' => [
                    'tpl'        => [
                        'value[mobile]'     => ['key' => 'mobile', 'view' => '监控通知联系人（注：账户余额不足、异常订单、售后审核、开店审核、提现审核时将进行通知）','placeholder'=>'请输入手机号码','type'=>'input'],
                    ],
                    'tplname' => '监控通知联系人'
                ],
            ]
        ]
    ];
}